package com.cqq.auth.dao;

import java.util.List;

import com.cqq.auth.dao.domain.UserGroup;
import com.cqq.common.core.interfaces.CommonDao;

/**
 * <h3>用户组Dao接口</h3>
 * 
 * @author xijq
 * @version 1.0.0
 * 
 */
public interface UserGroupDao extends CommonDao<UserGroup> {

	public UserGroup queryByName(String name);
	
	/**
	 * <h3>更新用户组角色ID</h3>
	 * 
	 * @param id 用户组ID
	 * @param roleIds 角色ID数组
	 * 
	 */
	public void updateRoleIds (Integer id, Integer[] roleIds);
	
	
	public List<UserGroup> queryUserGroupByUserId(Integer userId);
}
